const throttle = (handler,time)=>{
    let timer = null
    return function(){
        if(timer)
        {
            return
        }else{
            timer=setTimeout((
                handler.call(this,...arguments),
                timer = null
            ),time)
        }
    }
}

export  default throttle 